﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="BSPortal.Usercontrol.Login" %>
<div align="center">
    <div style="width: 40%">
            <div class="title_login"> <b class="b_title">THÀNH VIÊN ĐĂNG NHẬP</b></div>
            <div class="border" style="margin-top:10px;"> <a class="close_button" href="javascript: Bm.hide_popup('popup_login_form')"></a>
                <div class="padding">
                    <div class="row" style="margin-top:10px;">
                        <div class="label"> <b class="title_input">Tên đăng nhập</b> </div>
                        <div class="append_error_email margin">
                            <asp:TextBox class="big_field" type="text" AutoCompleteType="None" name="user_name" onkeypress="return onEnter();" id="txtUsername" size="52" style="width: 336px; height: 25px; margin-top: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(217, 217, 217); border-right-color: rgb(217, 217, 217); border-bottom-color: rgb(217, 217, 217); border-left-color: rgb(217, 217, 217); border-image: initial; " runat="server"/>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ErrorMessage="*" ControlToValidate="txtUsername"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row" style="margin-top:10px;" id="append_error">
                        <div class="label"> <b class="title_input">Mật khẩu</b> </div>
                        <div class="margin" id="append_error_password">
                            <asp:TextBox class="big_field" TextMode="Password" onkeypress="return onEnter();" id="txtPassword" name="password" size="52" style="width: 336px; height: 25px; margin-top: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(217, 217, 217); border-right-color: rgb(217, 217, 217); border-bottom-color: rgb(217, 217, 217); border-left-color: rgb(217, 217, 217); border-image: initial; " runat="server"/>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ErrorMessage="*" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row" style="margin-top:10px;" id="Div1">
                        <div class="label"> <b class="title_input">Mã xác nhận</b> </div>
                        <div class="margin" id="Div2">
                            <asp:TextBox class="big_field" id="txtCapcha" onkeypress="return onEnter();" autocomplete="off" name="password" size="52" style="width: 336px; height: 25px; margin-top: 5px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(217, 217, 217); border-right-color: rgb(217, 217, 217); border-bottom-color: rgb(217, 217, 217); border-left-color: rgb(217, 217, 217); border-image: initial; " runat="server"/>
                            <br/><IMG height="25" alt="" src="../Capcha.aspx" width="80">
                        </div>
                    </div>
                     <div class="row" style="margin-top:10px;" id="Div3">
                        <asp:Label runat="server" ID="lblWarning" style="color: red"></asp:Label>
                    </div>
                    <br>
                    <div class="row">
                        <p class="p_text">
                        </p>
                    </div>
                    <div class="row"> 
                        <a href="javascript: void(0);" rel="nofollow" id="event_focus_image" style="float: left;">
                            <asp:ImageButton ID="btnLogin" runat="server" ImageUrl="../images/From-dang-nhap_20.gif" 
                                style="margin-top:5px; margin-right:10px" onclick="btnLogin_Click"/>
                            </a>
                        <a class="p_text" href="dang-ky.html" rel="nofollow" style="position:relative;top:12px;"> Đăng ký </a>  </div>
                    </div>
                <div class="clear"></div>
            </div>
    </div>
</div>
<script type="text/javascript">
    function onEnter() {
        if (event.keyCode == 13) {
            document.getElementById("<%=btnLogin.ClientID %>").click();
            return false;
        }
        return true;
    }
</script>